﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace SchadenEscritorio.Vistas
{
    public partial class Login : Form
    {
        public TextBox NombreUsuario 
        { 
            get { return nombreLogin; }

        }
        public TextBox Password
        {
            get { return password; }
        }
        public Login()
        {
            InitializeComponent();
            button1.DialogResult = DialogResult.OK;
            button2.DialogResult = DialogResult.Cancel;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Session.Nombre = nombreLogin.Text;
            Session.Rol = nombreLogin.Text;
            Session.EsIniciado = true;
            Close();
                    
        }

        private void Login_Load(object sender, EventArgs e)
        {

        }
    }
}
